.class Lcom/estrongs/android/view/WebViewWrapper$a;
.super Landroid/webkit/WebViewClient;
.source "WebViewWrapper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/view/WebViewWrapper;-><init>(Landroid/app/Activity;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/view/WebViewWrapper;


# direct methods
.method constructor <init>(Lcom/estrongs/android/view/WebViewWrapper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 9

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {v0, p2}, Lcom/estrongs/android/view/WebViewWrapper;->f(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/estrongs/android/view/WebViewWrapper;->a(Lcom/estrongs/android/view/WebViewWrapper;Z)Z

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    const/4 v2, 0x1

    invoke-static {v0, v2}, Lcom/estrongs/android/view/WebViewWrapper;->b(Lcom/estrongs/android/view/WebViewWrapper;Z)Z

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object v3, v0, Lcom/estrongs/android/view/FileGridViewWrapper;->O:Lcom/estrongs/android/view/FileGridViewWrapper$a0;

    if-eqz v3, :cond_0

    .line 5
    invoke-interface {v3, v0, v2}, Lcom/estrongs/android/view/FileGridViewWrapper$a0;->a(Lcom/estrongs/android/view/FileGridViewWrapper;Z)V

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    const/4 v2, 0x0

    invoke-static {v0, v2, v1}, Lcom/estrongs/android/view/WebViewWrapper;->a(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v4

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {v0, v4}, Lcom/estrongs/android/view/WebViewWrapper;->g(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;)V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object v0, v0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    check-cast v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_1

    .line 9
    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->L0()V

    .line 10
    :cond_1
    invoke-static {}, Lcom/estrongs/android/util/q0;->i()Lcom/estrongs/android/util/q0;

    move-result-object v3

    const/4 v6, 0x2

    const/4 v7, 0x0

    const/4 v8, 0x1

    move-object v5, p2

    invoke-virtual/range {v3 .. v8}, Lcom/estrongs/android/util/q0;->a(Ljava/lang/String;Ljava/lang/String;ILandroid/graphics/Bitmap;Z)V

    .line 11
    invoke-super {p0, p1, p2}, Landroid/webkit/WebViewClient;->onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p1}, Lcom/estrongs/android/view/WebViewWrapper;->g(Lcom/estrongs/android/view/WebViewWrapper;)Landroid/util/SparseArray;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object p2, p2, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y:Ljava/lang/String;

    invoke-virtual {p2}, Ljava/lang/String;->hashCode()I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Integer;

    if-eqz p1, :cond_2

    .line 13
    iget-object p2, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object p2, p2, Lcom/estrongs/android/view/FileGridViewWrapper;->Z:Landroid/os/Handler;

    new-instance v0, Lcom/estrongs/android/view/WebViewWrapper$a$a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/view/WebViewWrapper$a$a;-><init>(Lcom/estrongs/android/view/WebViewWrapper$a;Ljava/lang/Integer;)V

    const-wide/16 v1, 0x64

    invoke-virtual {p2, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 14
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p1}, Lcom/estrongs/android/view/WebViewWrapper;->a(Lcom/estrongs/android/view/WebViewWrapper;)V

    return-void
.end method

.method public onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
    .locals 0

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p1, p2}, Lcom/estrongs/android/view/WebViewWrapper;->f(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    const/4 p2, 0x1

    invoke-static {p1, p2}, Lcom/estrongs/android/view/WebViewWrapper;->a(Lcom/estrongs/android/view/WebViewWrapper;Z)Z

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    const/4 p2, 0x0

    invoke-static {p1, p2}, Lcom/estrongs/android/view/WebViewWrapper;->b(Lcom/estrongs/android/view/WebViewWrapper;Z)Z

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object p1, p1, Lcom/estrongs/android/view/FileGridViewWrapper;->O:Lcom/estrongs/android/view/FileGridViewWrapper$a0;

    if-eqz p1, :cond_0

    .line 5
    invoke-interface {p1}, Lcom/estrongs/android/view/FileGridViewWrapper$a0;->onStart()V

    :cond_0
    return-void
.end method

.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 3

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p1, p2}, Lcom/estrongs/android/view/WebViewWrapper;->a(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;)Z

    move-result p1

    const/4 v0, 0x1

    if-nez p1, :cond_0

    return v0

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object p1, p1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-static {p1, p2}, Lcom/estrongs/android/pop/esclasses/ESWebView;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    return v0

    :cond_1
    const-string p1, "baiduboxapp"

    .line 3
    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_8

    const-string p1, "baiduboxlite"

    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    goto/16 :goto_1

    .line 4
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p1, p2}, Lcom/estrongs/android/view/WebViewWrapper;->b(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_3

    return v0

    .line 5
    :cond_3
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p1, p2}, Lcom/estrongs/android/view/WebViewWrapper;->e(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_6

    const-string p1, "?"

    .line 6
    invoke-virtual {p2, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 7
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/view/WebViewWrapper;->R0()Ljava/lang/String;

    move-result-object p2

    const-string v2, "&"

    invoke-virtual {p2, p1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 8
    :cond_4
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/view/WebViewWrapper;->R0()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 9
    :goto_0
    iget-object p2, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object p2, p2, Lcom/estrongs/android/view/WebViewWrapper;->T0:Lcom/estrongs/android/view/VideoEnabledWebView;

    if-eqz p2, :cond_5

    .line 10
    invoke-virtual {p2}, Landroid/webkit/WebView;->stopLoading()V

    .line 11
    iget-object p2, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object p2, p2, Lcom/estrongs/android/view/WebViewWrapper;->T0:Lcom/estrongs/android/view/VideoEnabledWebView;

    invoke-virtual {p2, p1}, Lcom/estrongs/android/view/VideoEnabledWebView;->loadUrl(Ljava/lang/String;)V

    .line 12
    :cond_5
    iget-object p2, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p2, p1}, Lcom/estrongs/android/view/WebViewWrapper;->f(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;)V

    return v0

    :cond_6
    const-string p1, "http"

    .line 13
    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_7

    const-string p1, "https"

    .line 14
    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_7

    const-string p1, "ftp"

    .line 15
    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_7

    const-string p1, "ftps"

    .line 16
    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_7

    const-string p1, "file"

    .line 17
    invoke-virtual {p2, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_7

    return v0

    .line 18
    :cond_7
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p1, p2}, Lcom/estrongs/android/view/WebViewWrapper;->f(Lcom/estrongs/android/view/WebViewWrapper;Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1

    .line 19
    :cond_8
    :goto_1
    new-instance p1, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-direct {p1, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 20
    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 21
    :try_start_0
    iget-object p2, p0, Lcom/estrongs/android/view/WebViewWrapper$a;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-virtual {p2, p1}, Lcom/estrongs/android/view/h0;->a(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return v0
.end method
